package com.hitfm.iplay.util;

import android.graphics.ColorMatrixColorFilter;
import android.graphics.drawable.Drawable;

public class ChangeGradation {
	public final static float[] BT_SELECTED = new float[] {         
	    0.308f, 0.609f, 0.082f, 0, 0,       
	    0.308f, 0.609f, 0.082f, 0, 0,  
	    0.308f, 0.609f, 0.082f, 0, 0,  
	    0, 0, 0, 1, 0  
	};  
	  
	public Drawable getChangeGradation(Drawable myImage) {
		myImage.mutate();  
		myImage.clearColorFilter();  
		myImage.setColorFilter(new ColorMatrixColorFilter(BT_SELECTED));
		return myImage;  
	}

}
